package com;

import com.pojo.Person;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;
import util.MybatisUtils;

public class PersonTest {
    @Test
    public void findPersonByIdTest(){
        SqlSession session = MybatisUtils.getSession();
        Person person = session.selectOne("com.mapper.PersonMapper.findPersonById", 1);
        System.out.println(person);
        session.close();
    }
}
